package View;

/**
 *
 * @author elach_000
 */
public class Tools {
        
    public static int clamp (int value,int min,int max) {
        if(value > max) {
            return max;
        } else if(value < min) {
            return min;
        } else {
            return value;
        }
    }
    
        public static float clampFloat (float value,float min,float max) {
        if(value > max) {
            return max;
        } else if(value < min) {
            return min;
        } else {
            return value;
        }
    }
}
